//-----------------------------------------------------------------------
// <copyright file="UserPresenter.cs" company="Simnova LLC">
//     Copyright (c) Simnova LLC. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace Simnova.Collaborate.Presenter
{
    using System;
    using System.Collections.Generic;
    using System.Text;

    public class UserPresenter
    {
        private readonly View.IUser userView;
        private int userId;

        public UserPresenter(int userId, View.IUser userView)
        {
            this.userId = userId;
            this.userView = userView;

            AppServer.CollaborateServiceClient collaborateClient = new AppServer.CollaborateServiceClient();
            
            collaborateClient.Close();
        }

        public int UserId
        {
            get { return this.userId; }
            set { this.userId = value; }
        }

        public string EmailAddress
        {
            get { return this.userView.EmailAddress; }
            set { this.userView.EmailAddress = value; }
        }

        public string ScreenName
        {
            get { return this.userView.ScreenName; }
            set { this.userView.ScreenName = value; }
        }
    }
}
